package com.cetccst.securitysuite.network;

import com.cetccst.securitysuite.network.respone.BaseResponse;
import com.cetccst.securitysuite.network.respone.TokenResponse;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.POST;

public interface ILoginApiService {
    @POST("/security/v1/auth/login")
    Call<TokenResponse> login(
            @Body RequestBody requestBody,
            @Header("PHONE") String phone,
            @Header("PASSWORD") String password);

    @POST("/security/v1/auth/logout")
    Call<BaseResponse> logout();

    @POST("/security/v1/basicData")
    Call<BaseResponse> postBasicData(@Body RequestBody requestBody);
}
